package com.lctandil.geophotos.data;

import java.util.ArrayList;
import java.util.List;

import com.lctandil.geophotos.clustering.Cluster;
import com.lctandil.geophotos.clustering.ImageInfo;

public class Cache {
	
	private static Cache instance;
	
	private List<ImageInfo> points;
	private Cluster currentCluster;
	
	private Cache(){
		this.points=new ArrayList<ImageInfo>();
	}
	
	public static Cache getInstance(){
		if (instance==null)
			instance=new Cache();
		return instance;
	}

	public final List<ImageInfo> getPoints() {
		return points;
	}

	public final void setPoints(List<ImageInfo> points) {
		this.points = points;
	}
	
	public final void setCurrentCluster(Cluster cluster){
		this.currentCluster = cluster;
	}
	
	public final Cluster getCurrentCluster(){
		return this.currentCluster;
	}
	
	

}
